package com.itheima.dao;

import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.OrderSettingVo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    void add(ArrayList<OrderSetting> orderSettingArrayList);


    List<OrderSettingVo> getOrderSettingByMonth(@Param("begin") String begin,@Param("end") String end);

    long findDate(Date orderDate);

    void editNumberByDate(OrderSetting orderSetting);

    void addDate(OrderSetting orderSetting);

    OrderSetting findByDate(Date orderDate);
    public void add(OrderSetting orderSetting);
    //更新可预约人数
    public void editNumberByOrderDate(OrderSetting orderSetting);
    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);
    public long findCountByOrderDate(Date orderDate);
    //根据日期范围查询预约设置信息
    public List<OrderSetting> getOrderSettingByMonth(Map date);
    //根据预约日期查询预约设置信息
    public OrderSetting findByOrderDate(Date orderDate);
}
